<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>

        // do while   循环   ---  先做后判断   ->  至少会执行一次(即使条件不满足)


        // do {

        // } while ()


        // var i = 0 ;
        // do {
        //     console.log(i) ;
        //     i++ ;
        // } while(i <= 100) 




        // 区别

        var i = 1000 ;
        do {
            console.log(i) ;
            i++ ;
        } while (i <= 100)

    </script>
    
</body>
</html>